package nancal.mp.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*



class CorpOrderInfoMeta(private val parentPropertyName: String): MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}
    val index = mongoColumnJoin(this.parentPropertyName, "index")
    val status = mongoColumnJoin(this.parentPropertyName, "status")
    val corp = IdNameMeta(mongoColumnJoin(this.parentPropertyName, "corp"))
    val amount_discount = mongoColumnJoin(this.parentPropertyName, "amount_discount")
    val deliveryInfo = OrderDeliveryDataMeta(mongoColumnJoin(this.parentPropertyName, "deliveryInfo"))
    val details = OrderInfo_ProductItemMeta(mongoColumnJoin(this.parentPropertyName, "details"))
    val refunds = RefundDataMeta(mongoColumnJoin(this.parentPropertyName, "refunds"))
    val coupons = UserCouponInfoMeta(mongoColumnJoin(this.parentPropertyName, "coupons"))
    val evaluates = EvaluateDataMeta(mongoColumnJoin(this.parentPropertyName, "evaluates"))
    val commissionLogs = CommissionDataMeta(mongoColumnJoin(this.parentPropertyName, "commissionLogs"))
    val payableAmount = mongoColumnJoin(this.parentPropertyName, "payableAmount")
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}

